﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Text;

namespace secondCodeFirstApp
{
    public class Initializer : DropCreateDatabaseIfModelChanges<Context>
    {
        protected override void Seed(Context context)
        {
            for (int i = 0; i < 6; i++)
            {
                var employer = new Person { Name = "P" + (i + 1) };
                context.People.Add(employer);
            }

            base.Seed(context);
        }
    }
}
